package com.yunji.app.common;

import com.yunji.base.business.TextRecordBusiness;
import com.yunji.common.base.response.Response;
import com.yunji.common.base.response.ResponseHelper;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@Api(tags = "移动端-文本记录管理")
@RestController
@RequestMapping("/gateway/text")
public class GatewayTextRecordController {

    @Resource
    private TextRecordBusiness business;

    @ApiOperation("小程序获取隐私政策")
    @GetMapping("/privacyText")
    public Response<String> getPrivacyText(@RequestParam("textType") Integer textType){
        return ResponseHelper.success(business.getPrivacyText(textType));
    }

}
